
<div class="lux-wrap">

    <h2 class="title">我的路线</h2>

    <!-- 没有路线 start -->
    <{if $trackList|@count == 0}>
     <p class="no-lux-info">提示：您未发布任何路线，请先发布路线哦！</p>
    <{else}>
    <ul class="lux-list">
        <li class="li fix">
            <div class="one">发布时间</div>
            <div class="two">路线名称</div>
            <div class="three">成单数</div>
            <div class="four">评分</div>
            <div class="five">操作</div>
        </li>
        <{foreach from=$trackList item=track}>
        <li class="li fix">
            <div class="one"><{"Y.m.d  H:i:s"|@date:$track.created}></div>
            <div class="two"><{$track.name}></div>
            <div class="three"><{if $track.orders != ""}><{$track.orders}>单<{else}>暂无<{/if}></div>
            <div class="four"><{if $track.score != ""}><{$track.score/100|round:2}>分<{else}>暂无<{/if}></div>
            <div class="five">
                <p class="caozuo fix">
                    <a class="a" target="_blank" href="/track/detail/<{$track.id}>">查看</a>
                    <a class="a" href="/track/create_basic/<{$track.id}>">编辑</a>
                    <!-- <a class="a" href="/track/remove/<{$track.id}>">删除</a> -->
                    <a class="a" href="javascript:;" onclick="return track_del_confirm('<{$track.id}>');">删除</a>
                </p>

            </div>
        </li>
        <{/foreach}>
    </ul>
    <{$pagination}>
    <{/if}>
    <!-- 没有路线 end -->

    <!-- 有路线 start -->



    <!-- 有路线 end -->

    <a href="/track/create_basic" target="_blank" class="click-fabu">发布路线</a>

</div>

<script>

$('.luhuo').addClass('active');
$('.list').addClass('mactive');
$('.list_nav').addClass('active');
$('.down-menu').eq(1).show();

</script>

<script>

function track_del_confirm(item) {

    layer.confirm('确认删除这条路线吗', {
            btn: ['是的','取消'], //按钮
            title: false,
            area: ['200px', '150px']
        },function(){
            location.href='/track/remove/'+item;
        },function(){
            return;
    });
}

</script>
